package com.yzjs.base;


import com.yzjs.enumeration.OrderStatusEnum;

public class OrderQueryResponse {
    private OrderStatusEnum orderStatusEnum;
    private String outTradeNo;
    private String attach;
    private String resultMsg;
    private String orderId;
    private String finishTime;

    OrderQueryResponse(OrderStatusEnum orderStatusEnum, String outTradeNo, String attach, String resultMsg, String orderId, String finishTime) {
        this.orderStatusEnum = orderStatusEnum;
        this.outTradeNo = outTradeNo;
        this.attach = attach;
        this.resultMsg = resultMsg;
        this.orderId = orderId;
        this.finishTime = finishTime;
    }

    public static OrderQueryResponse.OrderQueryResponseBuilder builder() {
        return new OrderQueryResponse.OrderQueryResponseBuilder();
    }

    public OrderStatusEnum getOrderStatusEnum() {
        return this.orderStatusEnum;
    }

    public String getOutTradeNo() {
        return this.outTradeNo;
    }

    public String getAttach() {
        return this.attach;
    }

    public String getResultMsg() {
        return this.resultMsg;
    }

    public String getOrderId() {
        return this.orderId;
    }

    public String getFinishTime() {
        return this.finishTime;
    }

    public void setOrderStatusEnum(OrderStatusEnum orderStatusEnum) {
        this.orderStatusEnum = orderStatusEnum;
    }

    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo;
    }

    public void setAttach(String attach) {
        this.attach = attach;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setFinishTime(String finishTime) {
        this.finishTime = finishTime;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof OrderQueryResponse)) {
            return false;
        } else {
            OrderQueryResponse other = (OrderQueryResponse)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$orderStatusEnum = this.getOrderStatusEnum();
                Object other$orderStatusEnum = other.getOrderStatusEnum();
                if (this$orderStatusEnum == null) {
                    if (other$orderStatusEnum != null) {
                        return false;
                    }
                } else if (!this$orderStatusEnum.equals(other$orderStatusEnum)) {
                    return false;
                }

                Object this$outTradeNo = this.getOutTradeNo();
                Object other$outTradeNo = other.getOutTradeNo();
                if (this$outTradeNo == null) {
                    if (other$outTradeNo != null) {
                        return false;
                    }
                } else if (!this$outTradeNo.equals(other$outTradeNo)) {
                    return false;
                }

                Object this$attach = this.getAttach();
                Object other$attach = other.getAttach();
                if (this$attach == null) {
                    if (other$attach != null) {
                        return false;
                    }
                } else if (!this$attach.equals(other$attach)) {
                    return false;
                }

                label62: {
                    Object this$resultMsg = this.getResultMsg();
                    Object other$resultMsg = other.getResultMsg();
                    if (this$resultMsg == null) {
                        if (other$resultMsg == null) {
                            break label62;
                        }
                    } else if (this$resultMsg.equals(other$resultMsg)) {
                        break label62;
                    }

                    return false;
                }

                label55: {
                    Object this$orderId = this.getOrderId();
                    Object other$orderId = other.getOrderId();
                    if (this$orderId == null) {
                        if (other$orderId == null) {
                            break label55;
                        }
                    } else if (this$orderId.equals(other$orderId)) {
                        break label55;
                    }

                    return false;
                }

                Object this$finishTime = this.getFinishTime();
                Object other$finishTime = other.getFinishTime();
                if (this$finishTime == null) {
                    if (other$finishTime != null) {
                        return false;
                    }
                } else if (!this$finishTime.equals(other$finishTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof OrderQueryResponse;
    }


    public String toString() {
        return "OrderQueryResponse(orderStatusEnum=" + this.getOrderStatusEnum() + ", outTradeNo=" + this.getOutTradeNo() + ", attach=" + this.getAttach() + ", resultMsg=" + this.getResultMsg() + ", orderId=" + this.getOrderId() + ", finishTime=" + this.getFinishTime() + ")";
    }

    public static class OrderQueryResponseBuilder {
        private OrderStatusEnum orderStatusEnum;
        private String outTradeNo;
        private String attach;
        private String resultMsg;
        private String orderId;
        private String finishTime;

        OrderQueryResponseBuilder() {
        }

        public OrderQueryResponse.OrderQueryResponseBuilder orderStatusEnum(OrderStatusEnum orderStatusEnum) {
            this.orderStatusEnum = orderStatusEnum;
            return this;
        }

        public OrderQueryResponse.OrderQueryResponseBuilder outTradeNo(String outTradeNo) {
            this.outTradeNo = outTradeNo;
            return this;
        }

        public OrderQueryResponse.OrderQueryResponseBuilder attach(String attach) {
            this.attach = attach;
            return this;
        }

        public OrderQueryResponse.OrderQueryResponseBuilder resultMsg(String resultMsg) {
            this.resultMsg = resultMsg;
            return this;
        }

        public OrderQueryResponse.OrderQueryResponseBuilder orderId(String orderId) {
            this.orderId = orderId;
            return this;
        }

        public OrderQueryResponse.OrderQueryResponseBuilder finishTime(String finishTime) {
            this.finishTime = finishTime;
            return this;
        }

        public OrderQueryResponse build() {
            return new OrderQueryResponse(this.orderStatusEnum, this.outTradeNo, this.attach, this.resultMsg, this.orderId, this.finishTime);
        }

        public String toString() {
            return "OrderQueryResponse.OrderQueryResponseBuilder(orderStatusEnum=" + this.orderStatusEnum + ", outTradeNo=" + this.outTradeNo + ", attach=" + this.attach + ", resultMsg=" + this.resultMsg + ", orderId=" + this.orderId + ", finishTime=" + this.finishTime + ")";
        }
    }
}

